# 负责整个项目的配置信息

class Config:
    # 数据库配置
    HOSTNAME = '127.0.0.1'
    PORT = '3306'
    DATABASE = 'test2'
    USERNAME = 'root'
    PASSWORD = '123123'

    # DB_URI = "mysql+pymysql://{username}:{password}@{host}:{port}/{db}?charset=utf8".format(USERNAME, PASSWORD,
    #                                                                                         HOSTNAME, PORT, DATABASE)

    # session配置
    # SQLALCHEMY_DATABASE_URI = DB_URI
    # SQLALCHEMY_TRACK_MODIFICATIONS = False # 是否追踪对象的修改

class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_ECHO = True # 是否打印底层执行的sql语句

class ProductionConfig(Config):
    pass

